<!doctype html>
{% load static %}

<html>

<style>

</style>

<!doctype html>
<html>
<head>
    <link rel="stylesheet" type="text/css" href="{% static 'css/login.css' %}">
    <meta charset='utf-8'>
    <title>你的灵感，是下一个杰作的火花。</title>
    <link rel="stylesheet" href="style.css">
</head>
{#    <body background="{% static 'imag/whitebackground.jpg' %}">#}
<body>
{% if user == -1%}
    <script>
        alert("账号不存在！请重新输入")
    </script>
{% elif password == -1%}
    <script>
        alert("密码错误，请重新输入")
    </script>
{% elif register_true == 1 %}
    <script>
        alert("注册成功,请牢记你的账号和密码!")
    </script>
{% endif %}
<div class="box">
    <h2>登 陆</h2>
    <form action="{% url 'status' %}" method="POST">
        {% csrf_token %}
        <div class="inputBox">
            <input type="text" name="user_name">
            <label>账号</label>
        </div>
        <div class="inputBox">
            <input type="password" name="password">
            <label>密码</label>
        </div>
        <input type="submit" name="" value="登陆">
    </form>
    <form action="{% url 'status' %}" method="GET">
        <input type="submit" value="新用户注册">
    </form>
</div>
</body>
</html>